package com.lanou.util;

/**
 * Created by dllo on 18/2/28.
 */
public class AjaxResultUtil {
    //所有数据接口（json数据）返回形式

    private int resultCode;
    private String message;
    private Object data;

    @Override
    public String toString() {
        return "AjaxResultUtil{" +
                "resultCode=" + resultCode +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public AjaxResultUtil() {

    }

    public AjaxResultUtil(int resultCode, String message, Object data) {

        this.resultCode = resultCode;
        this.message = message;
        this.data = data;
    }
}
